import request from '@/utils/request'

// 查询报损单列表
export function listStockLoss(query) {
  return request({
    url: '/store/stockLoss/list',
    method: 'get',
    params: query
  })
}

// 查询报损单详细
export function getStockLoss(id) {
  return request({
    url: '/store/stockLoss/' + id,
    method: 'get'
  })
}

// 新增报损单
export function addStockLoss(data) {
  return request({
    url: '/store/stockLoss',
    method: 'post',
    data: data
  })
}

// 修改报损单
export function updateStockLoss(data) {
  return request({
    url: '/store/stockLoss',
    method: 'put',
    data: data
  })
}

// 删除报损单
export function delStockLoss(id) {
  return request({
    url: '/store/stockLoss/' + id,
    method: 'delete'
  })
}
